#include "application.h"

extern int	ap_peripheral_power_key_read(int pin);
INT8U		avi_enc_start_flag = 0;
INT32U jpeg_rear_uvc_size;

void ap_startup_init(void)
{
	/* 1.when power on , only adapter in , video auto record
	2. avi_enc_start_flag status judge by power on
 */
	if(drv_l1_sys_pwr_key_read(ADP_OUT_PIN))
	{
		avi_enc_start_flag = 1;
	}
	
	jpeg_rear_uvc_size = 300*1024;

	video_encode_entrance();
}
